package org.jimmy.tang.designpattern.creation.builder;

/**
 * @author jimmy
 * 
 */
public class ManBuilder implements PersonBuilder {

    Person person;

    public ManBuilder() {
        person = new Man();
    }

    /* (non-Javadoc)
     * @see org.jimmy.tang.designpattern.creation.builder.PersonBuilder#buildHead()
     */
    @Override
    public void buildHead() {
        person.setHead("Build man's head.");

    }

    /* (non-Javadoc)
     * @see org.jimmy.tang.designpattern.creation.builder.PersonBuilder#buildBody()
     */
    @Override
    public void buildBody() {
        person.setBody("Build man's Body.");

    }

    /* (non-Javadoc)
     * @see org.jimmy.tang.designpattern.creation.builder.PersonBuilder#buildFoot()
     */
    @Override
    public void buildFoot() {
        person.setFoot("Build man's foot.");

    }

    /* (non-Javadoc)
     * @see org.jimmy.tang.designpattern.creation.builder.PersonBuilder#buildPerson()
     */
    @Override
    public Person buildPerson() {

        return person;
    }

}
